package com.chance.cc.crawler.development.command.publish.kaoyan;

import com.chance.cc.crawler.development.command.script.kaoyan.KaoyanCrawlerScript;

/**
 * @Author Zhao.Hhuan
 * @Date Create in 2020/12/11 13:30
 * @Description
 *      考研论坛
 **/
public class KaoyanPublishCrawlerJob {

    public static void main(String[] args) {
        publishCrawlerJob();
    }

    public static void publishCrawlerJob(){
        //发布采集文章job
//        CrawlerJob crawlerArticleJob = KaoyanCrawlerScheduleJob.publishKaoyanArticleCrawlerScheduleJobInfo();
//        KaoyanScheduleTrigger.publishScheduleArticleTriggerInfo(crawlerArticleJob.generateCrawlerKey(), crawlerArticleJob.generateCrawlerTriggerKey());

        //发布采集评论或互动量job
//        CrawlerJob crawlerInteractionOrCommentJob = KaoyanCrawlerScheduleJob.publishKaoyanInteractionOrCommentCrawlerScheduleJobInfo();
//        KaoyanScheduleTrigger.publishScheduleInteractionOrCommentTriggerInfo(crawlerInteractionOrCommentJob.generateCrawlerKey(), crawlerInteractionOrCommentJob.generateCrawlerTriggerKey());

        //发布采集脚本
        KaoyanCrawlerScript.publishCrawlerNodeScript();
    }
}
